#include <iostream>
#include <vector>

using namespace std;

void bubble_sort(vector<int> &vec)
{
    int len = vec.size();
    for(int i= 0; i < len-1; i++)
    {
        for(int j = 0; j < len - i - 1; j++)
        {
            if(vec[j] > vec [j+1])
                swap(vec[j],vec[j+1]);
        }
    }
}

int main()
{
    int num;
    cin >> num;

    vector<int> vec; //初始化一个size为0的vec数组
                     //vector<int> vec(num);vec数组里面的num个数全部初始化为0
    int temp;
    while(num--)
    {
        cin >> temp;
        vec.push_back(temp); //在vec数组的末尾添加数字temp
    }

    bubble_sort(vec);
    //for(auto i : vec)
    //{
    //    cout << i << " ";
    //}
    for(vector<int>::iterator it = vec.begin(); it != vec.end(); ++it)
    {
        cout << *it << " ";
    }
    cout << endl;
    return 0;
}
